# $Id: PKGBUILD 169028 2012-10-17 10:20:55Z allan $
# Maintainer : Rémy Oudompheng <remy@archlinux.org>

pkgname=python-pyelftools
_pypiname=pyelftools
pkgver=0.20
pkgrel=2
pkgdesc="Python library for analyzing ELF files and DWARF debugging information"
arch=('any')
url="http://pypi.python.org/pypi/pyelftools"
license=('custom')
depends=('python')
source=("http://pypi.python.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
md5sums=("5ac7b279a01c41e5b022a1a382eb9d92")

build() {
  cd ${srcdir}/${_pypiname}-${pkgver}
  python setup.py build
}

package() {
  cd ${srcdir}/${_pypiname}-${pkgver}
  python setup.py install --root=${pkgdir}
  install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

